#!/bin/bash
#kill_process.sh
current_PID=$$

ps ax|grep "/usr/bin/php"|awk '{print $1}'>/tmp/${current_PID}.txt

for pid in `cat /tmp/${current_PID}.txt`
do
{
echo "Kill -9 $pid"
kill -9 $pid
}
done

#echo "rm -f /tmp/${current_PID}.txt"
rm -f /tmp/${current_PID}.txt